<?php

/**
 * Acao form.
 *
 * @package    form
 * @subpackage Acao
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class AtaEventoForm extends BaseEventoForm
{
  public function configure()
  {
    unset(
      $this['created_at'], $this['updated_at'], $this['deleted'], $this['pauta'],
	  $this['cd_camara'], $this['cd_tipo_evento'], $this['cd_cidade'], $this['nr_evento'], $this['dt_hr_inicio'], 
	  $this['dt_hr_termino'], $this['de_endereco'], $this['ic_confirmado'], $this['extrato']
    );

	$this->setWidgets(array(
		'ata'        => new sfWidgetFormInputFile())
	); 
	
	$this->setValidators(array(
	   'ata' => new sfValidatorFile(array('path' => sfConfig::get('sf_upload_dir').'/atas/', 'max_size' => '1024000', 'required' => true)),
	));

	$this->widgetSchema->setNameFormat('ata[%s]');

  }
}
